package cn.beeson.eurekaclientdemo.logic.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class DemoController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/index")
    public String index() {
        return port + "端口被访问";
    }

}
